<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>页面</title>
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="robots" content="all,follow">
    <link rel="stylesheet" th:href="@{/agent/libs/layui/css/layui.css}" media="all"/>
    <script type="text/javascript" th:src="@{/agent/libs/jquery-1.11.0.min.js}"></script>
    <script type="text/javascript" th:src="@{/agent/libs/layui/layui.all.js}"></script>
    <script type="text/javascript" th:src="@{/agent/libs/layui/layui.js}"></script>
    <!-- Bootstrap CSS-->
    <link rel="stylesheet" th:href="@{/agent/vendor/bootstrap/css/bootstrap.min.css}">
    <!-- Font Awesome CSS-->
    <link rel="stylesheet" th:href="@{/agent/vendor/font-awesome/css/font-awesome.min.css}">
    <!-- Fontastic Custom icon font-->
    <link rel="stylesheet" th:href="@{/agent/css/fontastic.css}">
    <!-- Google fonts - Poppins -->
    <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins:300,400,700">
    <!-- theme stylesheet-->
    <link rel="stylesheet" th:href="@{/agent/css/style.default.css}" id="theme-stylesheet">
    <!-- Custom stylesheet - for your changes-->
    <link rel="stylesheet" th:href="@{/agent/css/custom.css}">
    <!-- Favicon-->
    <link rel="shortcut icon" th:href="@{/agent/img/favicon.ico}">
    <!-- Tweaks for older IEs--><!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script><![endif]-->
</head>
<body>


<div class="page login-page">
    <div class="container d-flex align-items-center">
        <div class="form-holder has-shadow">
            <div class="row">
                <div class="col-lg-6">
                    <div class="info d-flex align-items-center">
                        <div class="content">
                            <div class="logo">
                                <h1>云集家中介入驻</h1>
                            </div>
                        </div>
                    </div>
                </div>
                <!-- Form Panel    -->
                <div class="col-lg-6 bg-white">
                    <div class="form d-flex align-items-center">
                        <div class="content">
                            <form th:action="@{/agent/add}" class="form-validate"
                            >

                                <div class="form-group">
                                    <label style="vertical-align: inherit;">性别</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    男<input id="optionsRadios1" type="radio" checked="" value="男"
                                            name="agenSex">
                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    女<input id="optionsRadios2" type="radio" value="女" name="agenSex">
                                </div>

                                <div class="form-group">
                                    <input id="register-username" type="text" name="agentCorpname" required
                                           data-msg="Please enter your username" class="input-material"
                                           th:value="${agent.agentCorpname}">
                                    <label for="register-username" class="label-material">法人姓名</label>
                                </div>
                                <div class="form-group">
                                    <input type="number" name="agentPhone" required
                                           class="input-material" th:value="${agent.agentPhone}">
                                    <label class="label-material">法人手机号码 </label>
                                    <!--<input type="text" name="yzm" required lay-verify="required" placeholder="验证码"
                                           autocomplete="off" class="layui-input">
                                    <input type="button" class="layui-btn layui-btn-sm" value="获取验证码" id="yzm">-->
                                </div>
                                <div class="form-group">
                                    <input type="text" name="agentIdcard" lay-verify="identity" placeholder="请填写法人身份证号码"
                                           autocomplete="off" class="layui-input">
                                </div>

                                <div class="form-group">
                                    <input type="text" class="form-control" placeholder="公司名称" name="agentCompanyname"
                                           th:value="${agent.agentCompanyname}">
                                </div>
                                <div class="form-group">
                                    <div class="layui-input-inline">
                                        成立时间<input type="text" name="agentSetuptime" id="date" lay-verify="date"
                                                   placeholder="yyyy-MM-dd" autocomplete="off" class="layui-input"
                                                   th:value="${agent.agentSetuptime}">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="label-material">法人年龄</label>
                                    <select name="agentAge" class="form-control mb-3" >
                                        <option th:selected="${agent.agentAge}">1</option>
                                        <option>2</option>
                                        <option>3</option>
                                        <option>4</option>
                                        <option>5</option>
                                        <option>6</option>
                                        <option>7</option>
                                        <option>8</option>
                                        <option>9</option>
                                        <option>10</option>
                                        <option>11</option>
                                        <option>12</option>
                                        <option>13</option>
                                        <option>14</option>
                                        <option>15</option>
                                        <option>16</option>
                                        <option>17</option>
                                        <option>18</option>
                                        <option>19</option>
                                        <option>20</option>
                                        <option>21</option>
                                        <option>22</option>
                                        <option>23</option>
                                        <option>24</option>
                                        <option>25</option>
                                        <option>26</option>
                                        <option>27</option>
                                        <option>28</option>
                                        <option>29</option>
                                        <option>30</option>
                                        <option>31</option>
                                        <option>32</option>
                                        <option>33</option>
                                        <option>34</option>
                                        <option>35</option>
                                        <option>36</option>
                                        <option>37</option>
                                        <option>38</option>
                                        <option>39</option>
                                        <option>40</option>
                                        <option>41</option>
                                        <option>42</option>
                                        <option>43</option>
                                        <option>44</option>
                                        <option>45</option>
                                        <option>46</option>
                                        <option>47</option>
                                        <option>48</option>
                                        <option>49</option>
                                        <option>50</option>
                                        <option>51</option>
                                        <option>52</option>
                                        <option>53</option>
                                        <option>54</option>
                                        <option>55</option>
                                        <option>56</option>
                                        <option>57</option>
                                        <option>58</option>
                                        <option>59</option>
                                        <option>60</option>
                                        <option>61</option>
                                        <option>62</option>
                                        <option>63</option>
                                        <option>64</option>
                                        <option>65</option>
                                        <option>66</option>
                                        <option>67</option>
                                        <option>68</option>
                                        <option>69</option>
                                        <option>70</option>
                                        <option>71</option>
                                        <option>72</option>
                                        <option>73</option>
                                        <option>74</option>
                                        <option>75</option>
                                        <option>76</option>
                                        <option>77</option>
                                        <option>78</option>
                                        <option>79</option>
                                        <option>80</option>
                                        <option>81</option>
                                        <option>82</option>
                                        <option>83</option>
                                        <option>84</option>
                                        <option>85</option>
                                        <option>86</option>
                                        <option>87</option>
                                        <option>88</option>
                                        <option>89</option>
                                        <option>90</option>
                                        <option>91</option>
                                        <option>92</option>
                                        <option>93</option>
                                        <option>94</option>
                                        <option>95</option>
                                        <option>96</option>
                                        <option>97</option>
                                        <option>98</option>
                                        <option>99</option>
                                        <option>100</option>
                                        <option>101</option>
                                        <option>102</option>
                                        <option>103</option>
                                        <option>104</option>
                                        <option>105</option>
                                        <option>106</option>
                                        <option>107</option>
                                        <option>108</option>
                                        <option>109</option>
                                        <option>110</option>
                                        <option>111</option>
                                        <option>112</option>
                                        <option>113</option>
                                        <option>114</option>
                                        <option>115</option>
                                        <option>116</option>
                                    </select>
                                </div>
                                <div class="form-group">
                                    <input type="text" name="agentPrincipal" required
                                           data-msg="请填写公司负责人名字" class="input-material"
                                           th:value="${agent.agentPrincipal}">
                                    <label for="register-username" class="label-material">公司负责人</label>
                                </div>
                                <div class="form-group">
                                    <input type="text" name="agentPrincipaltel" required
                                           data-msg="请填写公司负责人手机号" class="input-material"
                                           th:value="${agent.agentPrincipaltel}">
                                    <label for="register-username" class="label-material">公司负责人手机号</label>
                                </div>
                                <div class="form-group">
                                    <input type="text" name="agentRegion" placeholder="公司所在区域"
                                           class="input-material"
                                           th:value="${agent.agentRegion}">
                                </div>
                                <div class="form-group">
                                    <input type="text" name="agentAddress" placeholder="公司详细地址"
                                           class="input-material"
                                           th:value="${agent.agentAddress}">
                                </div>
                                <div class="form-group">
                                    <input type="text" name="agentLicenseid" lay-verify="required|number"
                                           autocomplete="off"
                                           class="layui-input" placeholder="填写工商号" th:value="${agent.agentLicenseid}">
                                </div>
                                <div class="col-sm-9">
                                    <label>营业执照上传</label>
                                    <input id="fileInput" type="file" class="form-control-file" name="agentBsinfo"
                                           th:value="${agent.agentBsinfo}">
                                </div>

                                <div class="form-group">
                                    <button id="registers" type="submit" name="registerSubmit" class="btn btn-primary">
                                        注册
                                    </button>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

</div>
<!-- JavaScript files-->
<script th:src="@{/agent/vendor/jquery/jquery.min.js}"></script>
<script th:src="@{/agent/vendor/popper.js/umd/popper.min.js}"></script>
<script th:src="@{/agent/vendor/bootstrap/js/bootstrap.min.js}"></script>
<script th:src="@{/agent/vendor/jquery.cookie/jquery.cookie.js}"></script>
<script th:src="@{/agent/vendor/chart.js/Chart.min.js}"></script>
<script th:src="@{/agent/vendor/jquery-validation/jquery.validate.min.js}"></script>
<!-- Main File-->
<script th:src="@{/agent/js/front.js}"></script>
<script th:src="@{/agent/libs/layui/layui.all.js}"></script>
<script>
    layui.use(['form', 'layedit', 'laydate'], function () {
        var form = layui.form,
            layer = layui.layer,
            layedit = layui.layedit,
            laydate = layui.laydate;
        //日期
        laydate.render({
            elem: '#date'
        });
        laydate.render({
            elem: '#date1'
        });

        //创建一个编辑器
        var editIndex = layedit.build('LAY_demo_editor');

        //监听提交
        form.on('submit(demo1)', function (data) {
            layer.alert(JSON.stringify(data.field), {
                title: '最终的提交信息'
            })
            return false;
        });
        upload.render({
            elem: '#test10',
            url: '/upload/',
            done: function (res) {
                console.log(res)
            }
        });


    });
</script>
</body>
</html>